 $(function() {


        var url = WWW_URL + '/qcwdProduct/getProductByIds?ids=';


        $.ajax({
            url: url + href.join(","),

            dataType: "jsonp",
            jsonp: "jsonpcallback",
            success: function(data) {
                if (data.error == false) {

                    var productData = data.msg;
                    var dataLength = productData.length;

                    for (var i = 0; i < dataLength; i++) {
                        var productName = productData[i]['name'];
                        var id = productData[i]['id']
                        var price = productData[i]['price'];
                        var discountPrice = productData[i]['discountPrice'];
                        var pic = productData[i]['pic'];
                        var isfree = productData[i]['isfree'];
                        var isdouble = productData[i]['isdouble'];
                        var isavctive_full = productData[i]['isavctive_full'];
                        var discount = productData[i]['discount'];
                        var stock_num = productData[i]['stock_num'];
                        var freeFlag = productData[i]['freeFlag'];
                        var status = productData[i]['status'];
                        if (price != discountPrice) {
                            price = discountPrice;
                        }
                        var showfreeClass = '';
                        if (isfree == '') {
                            showfreeClass = 'displayNone';
                        }
                        var errorimage = "public.cjwsc.com/images/product_loading.gif";

                        $('.C_J_good[data-id="' + id + '"]').find(".price>span").text(price);
                        // if(freeFlag=true){
                        // $('.C_J_good[data-id="' + id + '"]').find(".price").append('<div>包邮</div>');

                        //  }
                        if (stock_num < 1 || status != 1) {
                            $('.C_J_good[data-id="' + id + '"]').addClass("col_sx").removeClass("C_J_good");
                        }


                    }
                } else {
                    console.log('error');
                }
            }
        });
    })